package com.scsj.supermarket.base;

import com.scsj.supermarket.bean.BaseBean;
import com.scsj.supermarket.bean.DeliveryAddressBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 获取收货地址列表，删除收货地址，设置默认收货地址BASE
 */

public class DeliveryAddressBase {

    public interface IView {

        void showDASuccessMsg(String s, DeliveryAddressBean deliveryAddressBean);

        void deleteDASuccess(String s,BaseBean deleteDABean);

        void setDefaultDASuccess(String s,BaseBean deleteDABean);;

        void showDAErrorMsg(String s);
    }

    public interface IPresenter {

        /**
         * 获取收货地址列表
         */
        void deliverDAlistData(RequestBody requestBody);

        /**
         * 删除收货地址
         */
        void deliverDeleteDAData(RequestBody requestBody);

        /**
         * 设置默认收货地址
         */
        void deliverSetDefaultDAData(RequestBody requestBody);
    }

    public interface IModel {

        /**
         * 获取收货地址列表
         */
        Subscription getDAlistData(RequestBody requestBody, ResponseCallback<DeliveryAddressBean> callback);

        /**
         * 删除收货地址
         */
        Subscription getDeleteDAData(RequestBody requestBody, ResponseCallback<BaseBean> callback);

        /**
         * 设置默认收货地址
         */
        Subscription getSetDefaultDAData(RequestBody requestBody, ResponseCallback<BaseBean> callback);
    }

}
